using System;
using System.Collections.Specialized;

namespace NCover.Actions
{
	/// <summary>
	/// Decouples us from NAnt.
	/// </summary>
	public class NCoverAction
	{
		public NCover.Objects.Counter Counter = new NCover.Objects.Counter();
		public NCover.Message InfoOutput = new Message(MessageSink);
		public NCover.Message DebugOutput = new Message(MessageSink);
		public StringCollection Filenames = new StringCollection();
		
		public void Execute()
		{
			new NCover.NCoverTaskImpl(this);
		}

		public static void MessageSink(string message)
		{
			// no messages by default.
		}
	}
}
